home *** CD-ROM | disk | FTP | other *** search
/ Ultra Pack / UltraComputing Partner Applications.iso / SunLabs / tclTK / src / tcl7.4 / porting.notes < prev    next >
Encoding:
Text File  |  1995-06-30  |  4.5 KB  |  124 lines

  1. This file contains a collection of notes that various people have
  2. provided about porting Tcl to various machines and operating systems.
  3. I don't have personal access to any of these machines, so I make
  4. no guarantees that the notes are correct, complete, or up-to-date.
  5. If you see the word "I" in any explanations, it refers to the person
  6. who contributed the information, not to me;  this means that I
  7. probably can't answer any questions about any of this stuff.  In
  8. some cases, a person has volunteered to act as a contact point for
  9. questions about porting Tcl to a particular machine;  in these
  10. cases the person's name and e-mail address are listed.  I'm
  11. interested in getting new porting information to add to the file;
  12. please mail updates to "john.ousterhout@eng.sun.com".
  13.  
  14. This file reflects information provided for Tcl 7.4 and later releases.
  15. If there is no information for your configuration in this file, check
  16. the file "porting.old" too;  it contains information that was
  17. submitted for Tcl 7.3 and earlier releases, and some of that information
  18. may still be valid.
  19.  
  20. A new porting database has recently become available on the Web at
  21. the following URL:
  22.     http://www.sunlabs.com/cgi-bin/tcl/info.4.0
  23. This page provides information about the platforms on which Tcl 7.4
  24. and Tk 4.0 have been compiled and what changes were needed to get Tcl
  25. and Tk to compile.  You can also add new entries to that database
  26. when you install Tcl and Tk on a new platform.  The Web database is
  27. likely to be more up-to-date than this file.
  28.  
  29. sccsid = @(#) porting.notes 1.9 95/06/30 11:18:28
  30.  
  31. --------------------------------------------
  32. Solaris, various versions
  33. --------------------------------------------
  34.  
  35. 1. If typing "make test" results in an error message saying that
  36. there are no "*.test" files, or you get lots of globbing errors,
  37. it's probably because your system doesn't have cc installed and
  38. you used gcc.  In order for this to work, you have to set your
  39. CC environment variable to gcc and your CPP environment variable
  40. to "gcc -E" before running the configure script.
  41.  
  42. 2. Make sure that /usr/ucb is not in your PATH or LD_LIBRARY_PATH
  43. environment variables;  this will cause confusion between the new
  44. Solaris libraries and older UCB versions (Tcl will expect one version
  45. and get another).
  46.  
  47. 3. There have been several reports of problems with the "glob" command.
  48. So far these reports have all been for older versions of Tcl, but
  49. if you run into problems, edit the Makefile after "configure" is
  50. run and add "-DNO_DIRENT_H=1" to the definitions of DEFS.  Do this
  51. before compiling.
  52.  
  53. --------------------------------------------
  54. Pyramid DC/OSx SVr4, DC/OSx version 94c079
  55. --------------------------------------------
  56.  
  57. Tcl seems to dump core in cmdinfo.test when compiled with the
  58. optimiser turned on in TclEval which calls 'free'.  To get around
  59. this, turn the optimiser off.
  60.  
  61. --------------------------------------------
  62. SGI machines, IRIX 5.2, 5.3, IRIX64 6.0.1
  63. --------------------------------------------
  64.  
  65. 1. If you compile with gcc-2.6.3 under some versions of IRIX (e.g.
  66.    4.0.5), DBL_MAX is defined too large for gcc and Tcl complains
  67.    about all floating-point values being too large to represent.
  68.    If this happens, redefining DBL_MAX to 9.99e299.
  69.  
  70. --------------------------------------------
  71. IBM RTs, AOS
  72. --------------------------------------------
  73.  
  74. 1. Steal fmod from 4.4BSD
  75. 2. Add a #define to tclExpr such that:
  76. extern double fmod(); 
  77. is defined conditionally on ibm032
  78.  
  79. --------------------------------------------
  80. FreeBSD
  81. --------------------------------------------
  82.  
  83. FreeBSD's math library does not properly handle floating-point exceptions,
  84. which can cause core dumps.  The following patch eliminates the problem:
  85.  
  86. *** tclBasic.c:1.1.1.1  Tue Sep 27 15:49:29 1994
  87. --- tclBasic.c  Tue Sep 27 15:49:29 1994
  88. ***************
  89. *** 35,40 ****
  90. --- 35,42 ----
  91.   #   include "tclUnix.h"
  92.   #endif
  93.   
  94. + #include <floatingpoint.h>
  95.   /*
  96.    * The following structure defines all of the commands in the Tcl core,
  97.    * and the C procedures that execute them.
  98. ***************
  99. *** 276,281 ****
  100. --- 278,285 ----
  101.             error $msg\n\
  102.         }";
  103.   
  104. +     fpsetround(FP_RN);
  105. +     fpsetmask(0L);
  106.       return Tcl_Eval(interp, initCmd);
  107.   }
  108.  
  109. --------------------------------------------
  110. QNX 4.22
  111. --------------------------------------------
  112.  
  113. tclPort.h
  114.     - commented out 2 lines containing #include <sys/param.h>
  115.  
  116. tcl.h
  117.     - changed  #define VARARGS ()
  118.     - to       #ifndef __QNX__
  119.                  #define VARARGS ()
  120.                #else
  121.                  #define VARARGS (void *, ...)
  122.                #endif
  123.